package com.qf.game;

/**
 * 法师类
 */
public class Master extends Hero {
    private Magic magic;

    public Magic getMagic() {
        return magic;
    }

    public void setMagic(Magic magic) {
        this.magic = magic;
    }


    public void magicAttack(){
        int magicDamage = magic.dealmagicDamage();
        System.out.println(magic.getName()+"等级"+magic.getGrade()+","+"造成的伤害为："+magic.magicDamage());
    }
}
